package com.springcloud.sc.ucpv5.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springcloud.sc.ucp.v5.api.entity.UcpServerInfo;
import com.springcloud.sc.ucpv5.mapper.UcpServerInfoMapper;
import com.springcloud.sc.ucpv5.service.UcpServerInfoService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
@AllArgsConstructor
public class UcpServerInfoServiceImpl extends ServiceImpl<UcpServerInfoMapper, UcpServerInfo> implements UcpServerInfoService {

    @Autowired
    private UcpServerInfoMapper ucpServerInfoMapper;

    public UcpServerInfo getLocalServerEntity() {
        return ucpServerInfoMapper.getLocalServerEntity();
    }

    @Override
    public UcpServerInfo getEntityServerByFlag(String ucpFlag) {
        return  ucpServerInfoMapper.getEntityServerByFlag(ucpFlag);
    }
}
